from pygame.event import Event
from pygame import USEREVENT, NUMEVENTS

# __all__ = ('pause', 'unpause', 'jump', 'roll')

PAUSE = USEREVENT    # 24
def pause(**attributes):
    return Event(PAUSE, **attributes)

USEREVENT += 1
UNPAUSE = USEREVENT    # 25
def unpause(**attributes):
    return Event(UNPAUSE, **attributes)

USEREVENT += 1
JUMP = USEREVENT    # 26
def jump(**attributes):
    return Event(JUMP, **attributes)

USEREVENT += 1
ROLL = USEREVENT    # 27
def roll(**attributes):
    return Event(ROLL, **attributes)

USEREVENT += 1
SWITCHPAGE = USEREVENT    # 28
def switchpage(**attributes):
    return Event(SWITCHPAGE, **attributes)


USEREVENT += 1
ANSWER = USEREVENT    # 29
def anwser(anwser, **attributes):
    return Event(ANSWER, anwser=anwser, **attributes)


assert USEREVENT <= NUMEVENTS    # 32
